<?php
require_once "Sc/Db/Adapter.php";

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
	protected function _initAutoload()
    {
        // Resource Autoloading
        $moduleLoader = new Zend_Application_Module_Autoloader(array(
            'namespace' => '',
            'basePath' => APPLICATION_PATH));
        return $moduleLoader;
    }
    
	protected function _initView()
    {
        // Initialize smarty view
        $view = new Zend_View();
        // Setup viewRenderer with suffix and view
        $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
        $viewRenderer->setViewSuffix('phtml');
        $viewRenderer->setView($view);

        // Ensure we have layout bootstraped
        $this->bootstrap('layout');
        // Set the tpl suffix to layout also
        $layout = Zend_Layout::getMvcInstance();
        $layout->setViewSuffix('phtml');

        return $view;
    }
    
    protected function _initProgram()
    {
       Sc_Db_Adapter::Init($this);

/*         $adapter = Banquet_Db_Adapter::getAdapter();

        Banquet_Log_AccessLog::Init($adapter);
        Banquet_Log_ProgramLog::Init($adapter);
        Banquet_Log_OperationLog::Init($adapter);*/
    }
    
}

